﻿@extends('Layout/layout')

@section('yemian')
<style type="text/css">
	.e_css {
    background: url(/public/images/lift_li_02_02.gif) no-repeat;
    width: 179px;
    font-weight: bold;
    color: #000;
    z-index: 1;
	}
</style>
<script type="text/javascript">
	$(document).ready(function(){ 
	 
		document.getElementById("meeting").className = "e_css";
	}); 
</script>
<body class="mian_bj">
<div class="mian_top_01">
<div class="mian_top_r"></div>
<div class="mian_top_l"></div>
<div class="mian_top_c">
<ul>
<li><a href="/MeetingRoom"><p>会议室</p></a></li>
<li><a href="{{ url('/Reservation') }}"><p>预约会议</p></a></li>

</ul>

</div>
<div class="mian_b">
<div class="mian_b1">
<a href="{{ url('/Reservation/add') }}" title="添加" ><p class="mian_b1_a1"></p></a>

<form action="{{url('/Reservation')}}" modth="get">
<p class="mian_b1_sousuo"><input name="name" type="text" value=""></p>
<input type="image" src="/public/images/1.jpg" style="margin:13px;">
</form>

	
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg">
<tr>
<td width="3%" class="mian_b_bg_lm"></td>
<td width="11%" class="mian_b_bg_lm"><span></span>会议室</td>
<td width="11%" class="mian_b_bg_lm"><span></span>预约部门</td>
<td width="17%" class="mian_b_bg_lm"><span></span>开始时间</td>
<td width="13%" class="mian_b_bg_lm"><span></span>结束时间</td>
<td width="30%" class="mian_b_bg_lm"><span></span>发起时间</td>
<td colspan="2" class="mian_b_bg_lm"><span></span>操作</td>
</tr>


@foreach($ind as $k=>$v)
<tr>
<td><input name="" type="checkbox" value="">&nbsp;</td>
<td>{{$v['MeetingRoomName']}}</td>
<td>{{$v['DepartmentName']}}</td>
<td>{{$v['ReservationTime']}}</td>
<td>{{$v['ReservationTime1']}}</td>
<td>{{str_replace([1,2],['上午','下午'],$v['ReservationDate'])}}</td>
<td width="8%" class="mian_b_icon_01"><a href="{{ url('/Reservation/edit',['id'=>$v['ids']]) }}">编辑</a></td>
<td width="8%"><a href="{{ url('/Reservation/del',['id'=>$v['ids']]) }}">取消预约</a></td>
</tr>
@endforeach


</table>

<div style="float:left;" id="fenye">
{!! $ind->appends($info)->render() !!}
</div>
</div>
</div>
</body>

@endsection